package com.sp2.dev.servlet;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-1-23
 * Time: 上午10:08
 * To change this template use File | Settings | File Templates.
 */
public class InitServlet extends HttpServlet {
    private static final Logger logger = LoggerFactory.getLogger(InitServlet.class);

    @Override
    public void init() throws ServletException {
        SystemService service = new SystemService();
        try {
            service.loadMessageProperties();

            service.loadJDBCProperties();
        } catch (Exception e) {
            logger.error("==========InitServlet init error============== "+e);
            System.out.print("==========Error when init==============");
            e.printStackTrace();
        }
    }
}
